package com.thinkmore.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

public class DelUser implements Serializable {
    @TableId(type = IdType.INPUT)
    private Integer id;
    private String name;
    /**
     * 此为局部配置，对应xml全局配置的dbconfig配置：
     * value:logic-delete-value
     * delval:logic-not-delete-value
     */
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
